﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

using System.Collections.Generic;

namespace NSQL.Expressions
{
    /// <summary>
    /// case when expression
    /// <example>
    /// case value when 3 then 'low' when 4 then 'mid' when 5 then 'high' else 'unKnown' end
    /// </example>
    /// </summary>
    public interface IMatchExpression : IValueExpression
    {
        IList<MatchPair<ILogicalExpression, IValueExpression>> Matches { get; }

        IValueExpression Default { get; }
    }
}